import request from "../../utils/request"

class API {
    //添加订单
    static orderAdd = (data:any)=>request.post('/order/orderAdd',data)

    //获取订单
    static getOrder= (data:any)=>request.post('/order',data)

    //编辑订单
    static orderEdit = (data:any)=>request.post('/order/orderEdit/'+data.id,data)

    //删除订单
    static orderDel = (data:any)=>request.post('/order/orderDel/'+data.id,data)
}
export default API